﻿namespace Connection.MRIM
{
    public struct Consts
    {
        public const int SizeHeader = 44;
        public const int CsMagic = -559038737; //0xDEADBEEF
        public const int ProtoVersion = 0x10013;

        public const int MrimCsPing = 0x1006;

        public const int MrimCsHello = 0x1001;
        public const int MrimCsHelloAck = 0x1002;

        public const int MrimCsLogin2 = 0x1038;
        public const int MrimCsLoginAck = 0x1004;
        public const int MrimCsLoginRej = 0x1005;
        public const int MrimCsLogout = 0x1013;
        public const int LogoutNoReloginFlag = 0x10;

        public const int MrimCsMessage = 0x1008;
        public const int MrimCsMessageAck = 0x1009;
        public const int MrimCsMessageRecv = 0x1011; //0x1011

        public const int MessageFlagOffline = 0x1;
        public const int MessageFlagNorecv = 0x4;
        public const int MessageFlagAuthorize = 0x8;
        public const int MessageFlagSystem = 0x40;
        public const int MessageFlagRtf = 0x80;
        public const int MessageFlagContact = 0x200;
        //MESSAGE_FLAG_NOTIFY = 0x400;
        public const int MessageFlagNotify = 0x300404;
        public const int MessageFlagCome = 0x300000;
        public const int MessageFlagUnknown1 = 0x300080;
        public const int MessageFlagMulticast = 0x1000;

        public const int MrimCsUserStatus = 0x100F;
        public const int MrimCsChangeStatus = 0x1022;

        public const int MrimCsContactList2 = 0x1037;
        public const int GetContactsOk = 0x0;
        public const int GetContactsError = 0x1;
        public const int GetContactsInterr = 0x2;

        public const int MrimCsSms = 0x1039;
        public const int MrimCsSmsAck = 0x1040;

        public const int MrimCsUserInfo = 0x1015;
    }
}
